<!doctype html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"   content="width=device-width, initial-scale=1">
    <title>index</title>
    {% include 'index/public/style.html' %}
</head>
<body>
<div class="container ">
    {% include 'index/public/head.html' %}
    {% include 'index/public/nav.html' %}
    <div class="box" >
        <h1 class="title">最新发表</h1>
        <div class="card">
        <div class="card-content">
            <div class="content">
                <h3 class="subtitle">{{info.title}}({{cate_name}})</h3>
            {{info.content}}
            </div>
        </div>
    </div>
    </div>
    <div class="box">
        <h1 class="title">浏览最多</h1>
        <table class="table" style="width:100%">
          <thead>
            <tr>
              <th>TOP</th>
              <th>标题</th>
              <th>发表时间</th>
              <th>浏览数</th>
            </tr>
          </thead>
          <tbody>
           {% for item in list %}
            <tr>
              <td>{{ loop.index }}</td>
              <td><a href="{{get_url('index.index.show',{'id':item.id})}}">{{ item.title }}</td>
              <td>{{item.addtime}}</td>
              <td>{{item.view}}</td>
           </tr>
           {% endfor %}
          </tbody>
        </table>
    </div>
    {% include 'index/public/foot.html' %}
</div>
</body>
</html>
